package com.qinglei.recoup.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 生命体征报警阈值表
 *
 * @author dqh
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_vital_signs_alarm")
@ApiModel(value = "VitalSignsAlarm对象", description = "生命体征报警阈值表")
public class VitalSignsAlarm implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "租户id(机构id)")
    private Integer tenantId;

    @ApiModelProperty(value = "楼id")
    private Integer buildingId;

    @ApiModelProperty(value = "层id")
    private Integer floorId;

    @ApiModelProperty(value = "房间id")
    private Integer roomId;

    @ApiModelProperty(value = "床位id")
    private Integer bedId;

    @ApiModelProperty(value = "生命体征报警类别(1.离床过久2.跌倒3.呼吸过速4.呼吸暂停过久5.心跳过缓6.心跳过速)")
    private Integer signType;

    @ApiModelProperty(value = "bpm")
    private String bpm;

    @ApiModelProperty(value = "bpm持续时间")
    private String continued;

    @ApiModelProperty(value = "是否启用1启用 0不启用")
    private Integer enable;

    private LocalDateTime createTime;

    private LocalDateTime modifyTime;

    @ApiModelProperty(value = "0-未删除 1-已删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "设备sn号")
    @TableField(exist = false)
    private String sn;
}
